package com.lkd.shoppingcart.entity;

import java.math.BigDecimal;

/**
 * 购物车视图
 * @author shubing
 *
 */
public class CartItemView {

	private int userId;
	private int productId;
	private String productName;
	private BigDecimal price;
	private int quantity;
	
	public CartItemView() {
		super();
	}

	public CartItemView(int userId, int productId, String productName, BigDecimal price, int quantity) {
		super();
		this.userId = userId;
		this.productId = productId;
		this.productName = productName;
		this.price = price;
		this.quantity = quantity;
	}
	
	public int getUserId() {
		return userId;
	}
	
	public void setUserId(int userId) {
		this.userId = userId;
	}

	public int getProductId() {
		return productId;
	}

	public void setProductId(int productId) {
		this.productId = productId;
	}

	public String getProductName() {
		return productName;
	}

	public void setProductName(String productName) {
		this.productName = productName;
	}
	
	public BigDecimal getPrice() {
		return price;
	}

	public void setPrice(BigDecimal price) {
		this.price = price;
	}

	public int getQuantity() {
		return quantity;
	}

	public void setQuantity(int quantity) {
		this.quantity = quantity;
	}

	@Override
	public String toString() {
		return "CartItem [userId=" + userId + ", productId=" + productId + ", productName=" + productName + ", price="
				+ price + ", quantity=" + quantity + "]";
	}
	
}
